﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Wolfy.NetDisk.Core.Model;

namespace Wolfy.NetDisk.Site.Models
{
    public class FileViewModel
    {
        public int Id { set; get; }
        /// <summary>
        /// 文件名称
        /// </summary>
        public string Name { set; get; }

        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string Ext { get { return System.IO.Path.GetExtension(this.Path); } }

        /// <summary>
        /// 文件存放相对路径
        /// </summary>
        public string Path { set; get; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public string Size { set; get; }
        /// <summary>
        /// 图标信息
        /// </summary>
        public string Icon { set; get; }

        /// <summary>
        /// 添加及修改时间
        /// </summary>
        public string Dt { set; get; }

    }
}